Persist/Delete object lists
You can also persist and delete lists of Data Objects. To achieve this, you can use the static methods of the PersistenceManager class:
PersistenceManager.Persist(list); PersistenceManager.Delete(list); |
Where list must be of type IList<IPersistable> and can contain different kinds of Data Objects (all persistable Data Objects implement IPersistable). You can of course do this in a transaction (see next topic).